package jsyf.oa.entity.system;

import com.alibaba.fastjson.JSONObject;
import jsyf.oa.ientity.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by Lenovo on 2017/12/11.
 */
@Entity
@Table(name = "T_SYS_ROLE_NAME_2_RIGHT_OP", schema = "oa", catalog = "")
public class RoleName2RightOpEntity extends BaseEntity {
    private String roleNameId;
    private String rightOpId;

    public String getRoleNameId() {
        return roleNameId;
    }

    public void setRoleNameId(String roleNameId) {
        this.roleNameId = roleNameId;
    }

    public String getRightOpId() {
        return rightOpId;
    }

    public void setRightOpId(String rightOpId) {
        this.rightOpId = rightOpId;
    }

    @Override
    public JSONObject getJSONObject() {
       JSONObject json = new JSONObject();
       json.put("ID",this.getId());
       json.put("ROLE_NAME_ID",this.getRoleNameId());
       json.put("RIGHT_OP_ID",this.getRightOpId());
       return json;
    }

    @Override
    public String getTableName() {
        return "T_SYS_ROLE_NAME_2_RIGHT_OP";
    }

    @Override
    public JSONObject getJSONColumns() {
        JSONObject json = new JSONObject();
        json.put("ID","id");
        json.put("ROLE_NAME_ID","roleNameId");
        json.put("RIGHT_OP_ID","rightOpId");
        return json;
    }
}
